<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>网站通知</title>
<meta name="Keywords"
	content="阅学网站内通知">
<meta name="description"
	content="阅学网站内通知">
<link href="css/main.css" rel="stylesheet" type="text/css">
<link href="css/index.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.10.2.min.js"></script>
</head>
<body>
	<jsp:include page="/expose/top.jsp"></jsp:include>
	<div class="yc_container">
		<div class="yc_content_other">
		  <div class="yc_right_box fl">
				<div class="yc_right_title0">
						<span>网站公告</span>
						<div class="gradient_line"></div>
				</div>
				<div class="yc_right_comlist" >
					<ul>
					  <c:forEach items="${notices}" var="notice">
                      		<li style="font-size: 12px;"><span><fmt:formatDate value="${notice.createDate}" type="both" pattern="yyyy-MM-dd HH:mm:ss" /></span><a target="_blank" href="expose/notice/detail?id=${notice.id }">${notice.noticeTitle }</a></li>
					  </c:forEach>
					</ul>
				</div>
                   <div class="pagebox">
                   <span style="line-height:24px;">&nbsp;共有${page.totalCount}条记录，当前第<b>${page.pageNow}</b>/${page.totalPageCount}页&nbsp;&nbsp;&nbsp;</span>
                   <span class="pagebox_pre"><a href="expose/notice/list?pageNow=1">第一页</a></span>
                   <c:choose>
                   			<c:when test="${page.pageNow -1 >0}">
                   					<span class="pagebox_pre"><a href="expose/notice/list?pageNow=${page.pageNow-1}">上一页</a></span>
                   			</c:when>
                   </c:choose>
                   <c:forEach begin="1" end="${page.totalPageCount}" var="pageIndex">
                   		<c:choose>
                   				<c:when test="${page.pageNow==pageIndex}">
                   						 <span class="pagebox_num_nonce">${pageIndex }</span>
                   				</c:when>
                   				<c:otherwise>
                   						<span class="pagebox_num"><a href="expose/notice/list?pageNow=${pageIndex}" target="_self">${pageIndex }</a></span>
                   				</c:otherwise>
                   		</c:choose>
                   </c:forEach>
                     <c:choose>
                   			<c:when test="${page.pageNow <page.totalPageCount}">
                  				 <span class="pagebox_next"><a href="expose/notice/list?pageNow=${page.pageNow+1 }" target="_self">下一页</a></span>
                   			</c:when>
                   </c:choose>
                   <span class="pagebox_next"><a href="expose/notice/list?pageNow=${page.totalPageCount}">最末页</a></span>
                   </div>
		  </div>
		</div>
        </div>
	<jsp:include page="/expose/bottom.jsp"></jsp:include>
</body>
</html>
